﻿@model Bidder

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
@Html.HiddenFor(model => model.BidderId)
}
@Html.HiddenFor(model => model.BidId)
@Html.HiddenFor(model => model.PrId)

@Html.HiddenFor(model => model.OfferStatus)
@Html.HiddenFor(model => model.ReceiveStatus)
@Html.HiddenFor(model => model.WinnerStatus)

@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)

<div class="clearfix">
<div class="row-fluid">
    <h4 class="text-info">ผู้ขาย</h4>
</div>
<div class="row-fluid">
    <div class="control-group">
        <div class="control-label">
            ชื่อผู้ขาย
        </div>
        <div class="controls">
            @Html.DropDownListFor(m => m.ConId, new KPIS.GERP.WEB.GIMS.MasContactService.MasContactServiceClient()
                .SelectListContact(new MasContact { ConCategory = 1, RecordStatus = "!D" }), 
                new
                {
                    @class = "chzn-select input-xlarge", 
                    data_placeholder = "เลือกผู้ขาย...", 
                    style = "display: none;" ,
                    data_manualwidth="90%"
                })
            @Html.ValidationMessageFor(model => model.ConId)
        </div>
    </div>

    @if (Model.BidId != null)
    {
    <div class="control-group">
        <div class="control-label">
            วันที่รับแบบ
        </div>
        <div class="controls">
            @Html.EditorFor(m => m.BidderDate)
            @Html.ValidationMessageFor(model => model.BidderDate)
        </div>
    </div>
    }
</div>
</div>